﻿using MyWPF.CMD;
using MyWPF.View;
using MyWPF.ViewModel;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace MyWPF
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {


     


        public MainWindow()
        {
            InitializeComponent();

            ClearCommand clearComd = new ClearCommand();
            this.Clear.Command = clearComd;
            this.Clear.CommandTarget = this.minView;
            // DataContext = new MainWindowVM();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Win1 win = new Win1();
            win.Show();
            var tt = win.DataContext as Win1VM;
            MessageBox.Show(tt.Name);
        }

      
    }
}